package hhpoll.service.context;

public class RequestContext {
    private String username;
    private String password;
    private static ThreadLocal<RequestContext> threadLocalContext = 
    	new ThreadLocal<RequestContext>() {
    		@Override
    		protected RequestContext initialValue() {
    			return new RequestContext();
    		}
    	};
    
    public static RequestContext getContext() {
    	return threadLocalContext.get();
    }

    public String getUsername() {
        return this.username;
    }

    public String getPassword() {
        return this.password;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
